package com.bluesky.javawebbrowser.domain.html.parser;

import com.bluesky.javawebbrowser.domain.html.tags.Root;
import com.bluesky.javawebbrowser.domain.html.tags.Tag;

public class ParseResult {
	private Tag root;
	private int warnningCount;
	private int errorCount;
	private int tagCount;

	public ParseResult() {
		root = new Root();

	}

	public int getWarnningCount() {
		return warnningCount;
	}

	public void setWarnningCount(int warnningCount) {
		this.warnningCount = warnningCount;
	}

	public int getErrorCount() {
		return errorCount;
	}

	public void setErrorCount(int errorCount) {
		this.errorCount = errorCount;
	}

	public Tag getRoot() {
		return root;
	}

	public void setRoot(Tag root) {
		this.root = root;
	}

	public int getTagCount() {
		return tagCount;
	}

	public void setTagCount(int tagCount) {
		this.tagCount = tagCount;
	}

	@Override
	public String toString() {
		return String.format("warn(%d),error(%d),tags(%d)", warnningCount,
				errorCount, tagCount);

	}
}
